const lodash = require('lodash')
const express = require('express')
const {stuNameArr} =require('./shuzu.js')
const serv =  express()

// => 2
//  console.log(lodash.random(0,10));

//  console.log(sjs);
//   console.log(sjs);

serv.get('/api/sj',(rqs,res)=>{
    const sj = lodash.random(0,10)
    const sjs = stuNameArr[sj]
    res.send(sjs)
    //  
  
})

serv.listen(3000,()=>{
    console.log('服务器开启了');
})